package com.yc.bbs.service;

import com.yc.bbs.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.bbs.entity.UserEx;
import org.springframework.validation.Errors;

import java.util.List;

/**
 * <p>
 * BBS论坛-用户表-6 服务类
 * </p>
 *
 * @author ly
 * @since 2024-11-23
 */
public interface IUserService extends IService<User> {

    User login(User user) throws BizException;

    void reg(UserEx user, Errors errors) throws BizException;

    int setp(User user);

    List<User> selectUsers();

    List<User> findMemberByQuery(String uname, String email, Integer status);

    void uploadQuestion(User user, Errors errors) throws BizException;

    int updateHead(User myinfo,String Head);

    User findByNa(String uname);

    User getQuestion();

}
